<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>编辑帖子</title>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script>
    <script type="text/javascript" src="../../js/editor/editPost.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../../css/editor/editPost.css"/>
</head>
<body>
<div id="body">
    <span>主题</span>
    <select id="selectType" name="type">
        <option value="建党百年">建党百年</option>
        <option value="红色家书">红色家书</option>
        <option value="缅怀革命先烈">缅怀革命先烈</option>
        <option value="中国近代史">中国近代史</option>
    </select>
    <span>标题</span>
    <input id="title" type="text" name="title" placeholder="请输入标题">
    <div id="div1"></div>
    <button id="submit" class="button" type="button">发表帖子</button>
    <button id="draft" class="button" type="button">保存草稿</button>
    <textarea id="text"></textarea>
</div>
<!--获取url中的参数-->
<script>
    var args=new Object();
    var query=location.search.substring(1);//获取查询串
    var pairs=query.split(",");//在逗号处断开
    for(var i=0;i<pairs.length;i++){
        var pos=pairs[i].indexOf('=');//查找name=value
        if(pos==-1){//如果没有找到就跳过
            continue;
        }
        var argname=pairs[i].substring(0,pos);//提取name
        var value=pairs[i].substring(pos+1);//提取value
        args[argname]=unescape(value);//存为属性
    }
    // console.log("pid:"+args.pid);
</script>
</body>
</html>
